package com.nbgs.demo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nbgs.demo.controller.form.ComplainNews;
import com.nbgs.demo.dao.ComplainMapper;
import com.nbgs.demo.model.Complain;
import com.nbgs.demo.service.ComplainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ComplainServiceImpl implements ComplainService {
    @Autowired
    private ComplainMapper complainMapper;

    @Override
    public IPage<ComplainNews> showAll(Page<ComplainNews> page, String complainState) {
        return complainMapper.showAll(page, complainState);
    }

    @Override
    public int getAll(String complainState) {
        return complainMapper.getAll(complainState);
    }

    @Override
    public void updateState(ComplainNews complainNews) {
        complainMapper.updateState(complainNews);
    }
}
